import os
import uuid

from django.core.files.storage import Storage
from django.conf import settings


# imgfile = request.FILES.get('img')
#
# usr.img = imgfile

class ImageStorage(Storage):
    def __init__(self, house_url=None):
        self.house_url = house_url or settings.HOUSE_URL

    def _open(self, name, mode='rb'):
        pass

    def _save(self, name, content):
        pass

    def url(self, name):
        return self.house_url + name
